home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4008 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: kjpoglit.!kjpoglit
  2. From: kjpoglit@kjpoglit. (Karl Poglitsch)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re:GetSystemMetrics
  5. Date: 27 Jan 1996 05:14:51 GMT
  6. Organization: i-conn
  7. Distribution: world
  8. Message-ID: <4ecccb$rpb@news.iconn.net>
  9. Reply-To: kjpoglit@kjpoglit.
  10. NNTP-Posting-Host: hd-ts01-05.iconn.net
  11.  
  12. Hello...
  13.  
  14. I am looking at a book "Programming in Windows 3.1 Third Edition" and that's 
  15. exactly how they do it.  SM_CYSCREEN and SM_CXSCREEN give you the width and 
  16. heigth of the screen.
  17.  
  18. You've got it...
  19.  
  20. I have a question for you now...  Any way to stop a window from being sized too 
  21. small?  I tried to intercept the WM_SIZE command, however I couldn't get 
  22. anything working there...  I know it can be done, but I can't figure out how to 
  23. do it.  I'm also looking into animated icons, however I can't get it to change 
  24. by itself.  I force it to repaint, but that doesn't work.  It does work if I 
  25. actually move the icon though.  Any ideas on this?
  26.  
  27. >seems to indicate i should use GetsystemMetrics(SM_SXSCREEN) for the 
  28. >width and GetSystemMetrics(SM_CYSCREEN) for the height of the window.
  29. >But it looks like these functions always return the values as if the 
  30. >window was maximized. I have solved my particular problem by 
  31.  
  32. Actually, the size of the screen, not the size of any window...
  33.  
  34. >'intercepting' the WM_SIZE message from windows which gives me the size
  35. >of the resized window in lParam but i am wondering if i am doing the 
  36. >right thing here. 
  37. >As anyone had any problems with this also?
  38. >
  39. >Theo.
  40.  
  41.  
  42.